home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
comms
/
other
/
dc-sx107install
/
sx
/
rexx
/
autoadd.rexx
next >
Wrap
OS/2 REXX Batch file
|
1999-11-29
|
775b
|
39 lines
/* ============================================ */
/* === AUTO ADD SCRIPT FOR SYSTEM-X / AMIRC === */
/* ============================================ */
/*
To run this program, type this in shell:
rx sx:rexx/autoadd.rexx
*/
OPTIONS RESULTS
IF ~Open(file, "ENV:ppp0iplocal", 'R') THEN do;exit;end
ip = readln(file)
Close(file)
IF ~show(ports,"SX-MCP-REXX") THEN do;done=1;end
IF ~show(ports,"AMIRC.1") THEN do;done=1;end
do While done ~= 1
ADDRESS "SX-MCP-REXX"
TOTALNODES; nodes = RC
ONLINENODES; onnodes = RC
freenodes = nodes-onnodes
ADDRESS "AMIRC.1"
"SAY [COUNTDOWN BBS] TELNET: "ip" "freenodes"/"nodes" nodes free."
ADDRESS COMMAND 'Wait 30'
IF ~show(ports,"SX-MCP-REXX") THEN do;done=1;end
IF ~show(ports,"AMIRC.1") THEN do;done=1;end
end
EXIT 0